a = 0
b = 1
c = 2

print("a == b ?", a == b)
print("b > a  and c >b ?", b > a and c > b)
# 其实小括号加不加都可以，但是建议加上，避免歧义
print("(b > a)  and (c >b) ?", (b > a) and (c > b))

print("---------")
if (not (1 == 3)):
    print("1 != 3")

print("----------------- 数字之间使用 ------------")
# and 只要有一个值为0，就返回0 ，否则返回最后一个非0数字
print("0 and 1 = ", 0 and 1)
print("2 and 5 = ", 2 and 5)
print("-1 and -2 = ", -1 and -2)
print("-2 and -1 = ", -2 and -1)
# or运算  "",，只有所有参与比价的值为0才返回0 ，否则返回第一个非0数字
print("0 or 1 = ", 0 or 1)
print("1 or 10 = ", 1 or 10)
print("10 or 1 = ", 10 or 1)
print("-1 or -2 = ", -1 or -2)
print("0 or -1 = ", 0 or -1)
